* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f4f7fb;
  color: #0f2348;
}
a { text-decoration: none; color: inherit; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,35,72,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo { display: flex; align-items: center; gap: 12px; }

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav li { padding-bottom: 6px; cursor: default; }

nav li a {
  text-decoration: none;
  color: #1f335b;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}

nav li a:hover { color: #0b2f6b; }

nav li.active a {
  color: #0b2f6b;
  font-weight: 600;
  border-bottom: 3px solid #0b2f6b;
  padding-bottom: 6px;
}

.mentor-btn {
  background: #0b2f6b;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(13,38,87,.2);
  cursor: pointer;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #0b2f6b;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0b2f6b;
  border-radius: 2px;
  transition: all .3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-mentor-btn { display: none; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: #fff;
  padding: 50px 0 30px;
  border-bottom: 1px solid #e4eaf4;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.page-hero-text h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #0b2f6b;
}

.page-hero-text p {
  font-size: 15px;
  color: #7b8ca8;
  margin: 0;
  max-width: 460px;
}

.page-hero-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap { position: relative; }

.search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b8ca8;
  font-size: 14px;
}

.search-wrap input {
  padding: 12px 16px 12px 40px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  width: 280px;
  background: #fff;
  color: #0f2348;
  transition: border .2s;
}

.search-wrap input:focus { border-color: #0b2f6b; }

.filter-select {
  padding: 12px 16px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #0f2348;
  outline: none;
  cursor: pointer;
  min-width: 160px;
}

/* ===== FILTER ROW ===== */
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e4eaf4;
  margin-bottom: 10px;
  background: #fff;
}

.mentor-count {
  font-size: 15px;
  font-weight: 600;
  color: #0b2f6b;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #7b8ca8;
}

.sort-select {
  padding: 8px 14px;
  border: 1px solid #d6deea;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #0f2348;
  outline: none;
  cursor: pointer;
}

/* ===== GRID ===== */
.mentors-section { padding: 30px 0 80px; }

.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #7b8ca8;
  font-size: 15px;
}

/* ===== CARD ===== */
.mentor-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px 20px;
  border: 1px solid #e4eaf4;
  box-shadow: 0 4px 16px rgba(11,47,107,.06);
  cursor: pointer;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mentor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(11,47,107,.14);
  border-color: #0b2f6b;
}

.card-heart {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #bcc8de;
  font-size: 18px;
  transition: color .2s, transform .2s;
  z-index: 2;
}

.card-heart:hover { color: #e05555; transform: scale(1.2); }
.card-heart.liked  { color: #e05555; }

.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e4eaf4;
  flex-shrink: 0;
}

.avatar-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e4eaf4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #0b2f6b;
  flex-shrink: 0;
}

.card-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #0b2f6b;
}

.card-domain {
  font-size: 13px;
  color: #7b8ca8;
  margin: 0 0 8px;
}

.card-divider {
  width: 26px;
  height: 3px;
  background: #3b82f6;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card-price {
  font-size: 14px;
  font-weight: 700;
  color: #0f2348;
  margin: 0;
}

.card-price span {
  font-weight: 400;
  color: #7b8ca8;
  font-size: 13px;
}

.card-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
}

/* ===== POPUP ===== */
.mentor-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,47,107,.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mentor-overlay.open { display: flex; }

.mentor-popup {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6deea transparent;
  animation: popIn .35s cubic-bezier(.22,1,.36,1);
}

.mentor-popup::-webkit-scrollbar { width: 4px; }
.mentor-popup::-webkit-scrollbar-thumb { background: #d6deea; border-radius: 4px; }

@keyframes popIn {
  from { opacity: 0; transform: scale(.9) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #7b8ca8;
  cursor: pointer;
  line-height: 1;
}

.popup-close:hover { color: #0b2f6b; }

.popup-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.popup-header img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e4eaf4;
  flex-shrink: 0;
}

.popup-header h2   { margin: 0 0 4px; font-size: 22px; color: #0b2f6b; }
.popup-domain      { font-size: 13px; color: #7b8ca8; font-weight: 500; }

.popup-divider {
  width: 26px;
  height: 3px;
  background: #3b82f6;
  border-radius: 999px;
  margin-top: 8px;
}

.popup-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #4c5e78;
  margin: 0 0 20px;
}

.popup-video-wrap {
  display: none;
  width: 100%;
  margin: 0 0 22px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.popup-video-wrap.has-video { display: block; }

.popup-video-wrap video {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.popup-stats {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f4f7fb;
  border-radius: 12px;
  margin-bottom: 18px;
}

.popup-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.popup-stat i { font-size: 20px; color: #0b2f6b; }
.stat-label   { display: block; font-size: 11px; color: #7b8ca8; }
.stat-val     { display: block; font-size: 14px; font-weight: 600; color: #0b2f6b; }

.popup-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0b2f6b;
  margin-bottom: 20px;
}

.popup-price-row i { color: #7b8ca8; }

.popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #0b2f6b;
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: background .2s;
}

.popup-btn:hover { background: #0a2558; }

/* ===== WHATSAPP ===== */
.float-chat-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s ease;
}

.float-chat-btn:hover { transform: scale(1.08); }
.float-chat-btn i { font-size: 28px; color: #fff; }

.chat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,47,107,.35);
  backdrop-filter: blur(3px);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.chat-overlay.open { display: flex; }

.chat-popup {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: popupIn .3s ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-popup h3  { margin: 0 0 6px; font-size: 20px; color: #0b2f6b; font-weight: 700; }
.chat-popup > p { margin: 0 0 22px; font-size: 13px; color: #51627b; }

.chat-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #7b8ca8;
  cursor: pointer;
}

.chat-close:hover { color: #0b2f6b; }

.chat-field { margin-bottom: 16px; }

.chat-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0b2f6b;
  margin-bottom: 6px;
}

.chat-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: #3b4b64;
  outline: none;
  transition: border .2s;
}

.chat-field input:focus { border-color: #0b2f6b; }

.chat-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s;
}

.chat-submit:hover { background: #1ebe5d; }

/* ===== FOOTER ===== */
.footer {
  background: #0f2a5c;
  color: white;
  padding: 60px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h3 { margin-bottom: 15px; font-size: 20px; }
.footer-col h4 { margin-bottom: 15px; font-size: 16px; }
.footer-col p  { margin-bottom: 8px; opacity: .85; font-size: 14px; }

.footer-col a {
  display: block;
  color: white;
  opacity: .8;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 40px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  opacity: .7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .page-hero-inner       { flex-direction: column; align-items: flex-start; }
  .page-hero-controls    { width: 100%; }
  .search-wrap input     { width: 100%; }
}

@media (max-width: 768px) {
  .hamburger             { display: flex; }
  .desktop-only          { display: none !important; }

  nav ul#nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11,47,107,.12);
    padding: 16px 0;
    z-index: 999;
    gap: 0;
  }

  nav ul#nav-menu.open   { display: flex; }

  nav ul#nav-menu li {
    padding: 12px 24px;
    border-bottom: 1px solid #eef1f8;
    font-size: 15px;
    font-weight: 500;
    list-style: none;
  }

  nav li.active {
    border-left: 4px solid #0b2f6b;
    padding-left: 20px;
    background: #f0f5fc;
    border-bottom: 1px solid #eef1f8 !important;
  }

  nav li.active a        { border-bottom: none; }

  .mobile-mentor-btn     { display: block !important; padding: 16px 24px !important; }
  .mobile-mentor-btn .mentor-btn { width: 100%; justify-content: center; }

  .page-hero             { padding: 30px 0 20px; }
  .page-hero-text h1     { font-size: 28px; }
  .page-hero-controls    { flex-direction: column; align-items: stretch; }
  .filter-select         { width: 100%; }
  .filter-row            { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mentors-grid          { grid-template-columns: 1fr 1fr; gap: 16px; }
  .popup-stats           { flex-direction: column; gap: 12px; }
  .mentor-popup          { padding: 24px 18px; }
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: 24px; }
  .chat-popup            { margin: 0 16px; }
}

@media (max-width: 480px) {
  .mentors-grid          { grid-template-columns: 1fr; }
  .footer-grid           { grid-template-columns: 1fr; }
  .page-hero-text h1     { font-size: 24px; }
}